package com.mtf.common.enums;

/**
 * @Author matengfei
 * @Date 2024/3/12 11:58
 * @PackageName:com.mtf.common.enums
 * @ClassName: IdempotentEnum
 * @Description: 重复消费解决方案枚举
 * @Version 1.0
 */
public enum IdempotentEnum {
    SERVICE_IDEMPOTENT(0,"业务表唯一索引解决重复消费"),
    MESSAGE_TABLE_IDEMPOTENT(1,"消息表唯一索引解决重复消费"),
    MESSAGE_STATUS_IDEMPOTENT(2,"消息表消息状态解决重复消费"),
    REDIS_IDEMPOTENT(3,"redis解决重复消费"),
    SERVICE_SELECT_IDEMPOTENT(4,"查询判断是否落库解决重复消费");
    private int type;
    private String description;

    IdempotentEnum(int type, String description) {
        this.type = type;
        this.description = description;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
